<?php
class Term extends AppModel
{
	public $name = 'Term';
	public $hasMany = array(
		'Relationship' => array(
			'className' => 'Relationship',
			'foreignKey' => 'term_id',
			'dependent' => true,
			),
		); // end many - one
	
	public $validate = array(
		'name' => array(
			'required' => array(
				'rule' => 'notEmpty',
				'message' => 'Your name is required',
				),
			),
		'type' => array(
			'required' => array(
				'rule' => 'notEmpty',
				'message' => 'Your name is required',
				),
			),
		);

}

?>